
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr><td colspan="6" class="t_bar">&nbsp;单位基本信息</td></tr>

								<tr>
									<td width="100px" align="right">单位名称：</td>
									
									<td >&nbsp;
										<input type="hidden" name="organizations/organization[0]@submit_org" value="1" > 
										<input type="hidden" name="organizations/organization[0]@sequence_no" value="1" >
										<input type="hidden" name="organizations/organization[0]/org_code" 
											value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
										
										<span name="organizations/organization[0]/cname">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/>
										</span>
									</td>
									<td width="100px" align="right">组织机构代码：</td>
									<td >&nbsp;<span name="organizations/organization[0]/org_no">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_no"/>
										</span>
									</td>
							</tr>
							<tr>
									<td align="right">单位地址：</td>
									<td >&nbsp;<span name="organizations/organization[0]/address">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address"/>
										</span>
									</td>
									<td align="right">邮政编码：</td>
									<td >&nbsp;<span name="organizations/organization[0]/zip_code">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/zip_code"/>
										</span>
									</td>	
							</tr>
							<tr>
									<td align="right">开户银行：</td>
									<td >&nbsp;<span name="organizations/organization[0]/bank_name">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_name"/>
										</span>
									</td>
									<td align="right">信用等级：</td>
									<td >&nbsp;<span name="organizations/organization[0]/credit_level">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/credit_level"/>
										</span>
									</td>	
							</tr>
							<tr>
									<td align="right">联系电话：</td>
									<td >&nbsp;<span name="organizations/organization[0]/tel">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_tel"/>
										</span>
									</td>
									<td align="right">电子邮箱：</td>
									<td >&nbsp;<span name="organizations/organization[0]/email">
											<x:out select="$xmlData/data/organization/contact_info/contact_email"/>
										</span>
									</td>	
							</tr>
							<tr>
									<td align="right">传真：</td>
									<td >&nbsp;<span name="organizations/organization[0]/fax">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/fax"/>
										</span>
									</td>
									<td align="right">网站地址：</td>
									<td >&nbsp;<span name="organizations/organization[0]/http">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/http"/>
										</span>
									</td>	
							</tr>
							<tr>
									<td align="right">单位性质：</td>
									<td >&nbsp;<span name="organizations/organization[0]/nature_type_name">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/nature_name"/>
										</span>
										<span style="display:none" name="organizations/organization[0]/nature_type">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/nature_value"/>
										</span>
									</td>	
									<td align="right">单位特性：</td>
									<td >&nbsp;<span name="organizations/organization[0]/unit_speciality_name">
									<c:set var ="tmp"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/chk_characteristic_name"/></c:set>
											<c:set var ="tmp" value="${fn:replace(tmp,',','，')}"></c:set>
											${tmp }
										</span>
										<span style="display:none" name="organizations/organization[0]/unit_speciality">
											<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/chk_characteristic_value"/>
										</span>
									</td>
							</tr>
					</table>
					<br>
                    <div class="t_bar">单位人员情况</div>
					<table class="t_css" cellpadding="0" cellspacing="0" width="100%" id='orgInfo2'align="center">
							<thead>
							<tr>
								<th class="TblHead" align="center" width="100px">
									&nbsp;
								</th>
								<th class="TblHead" align="center">
									姓名
								</th>
								<th class="TblHead" align="center">
									职务
								</th>
								<th class="TblHead" align="center">
									职称
								</th>
								<th class="TblHead" align="center">
									办公电话
								</th>
								<th class="TblHead" align="center">
									手机
								</th>
								<th class="TblHead" align="center" >
									电子邮箱
								</th>
							</tr>
							</thead>
							<tbody id="tab">
							
							<tr>
								<td align="right">
									单位负责人：
								</td>
								<td align="center">
									&nbsp;
									<input type="hidden"
										  name="organization_persons/organization_person[0]@psn_type"
										value="fuzeren">
									<span name="organization_persons/organization_person[0]/cname">
										<x:out
											select="$xmlData/data/organization_persons/unit_name" />
									</span>
								</td>
								<td align="center">
									&nbsp;
									<span
										name="organization_persons/organization_person[0]/position">
										<x:out
											select="$xmlData/data/organization_persons/unit_post" />
									</span>
								</td>
								<td align="center">
									&nbsp;
									<span
										name="organization_persons/organization_person[0]/prof_title_name">
										<x:out
											select="$xmlData/data/organization_persons/unit_title_name" />
									</span>
								</td>
								<td align="center">
									&nbsp;
									<span
										name="organization_persons/organization_person[0]/tel_work">
										<x:out
											select="$xmlData/data/organization_persons/unit_tel" />
									</span>
								</td>
								<td align="center">
									&nbsp;
									<span name="organization_persons/organization_person[0]/mobile">
										<x:out
											select="$xmlData/data/organization_persons/unit_mobile" />
								</td>
								<td align="center" >
									&nbsp;
									<span name="organization_persons/organization_person[0]/email">
										<x:out
											select="$xmlData/data/organization_persons/unit_email" />
									</span>
								</td>
							</tr>
									<tr>
									<td align="right">法人代表：</td>
									<td align="center">&nbsp;<span name="organization_persons/organization_person[1]/cname">
											<x:out select="$xmlData/data/organization_persons/legal_name"/>
										</span>
										<input type="hidden"
										  name="organization_persons/organization_person[1]@psn_type"
										value="faren">
									</td>
									<td align="center">&nbsp;<span name="organization_persons/organization_person[1]/position">
											<x:out select="$xmlData/data/organization_persons/legal_post"/>
										</span>
									</td>	
									<td align="center">&nbsp;<span name="organization_persons/organization_person[1]/prof_title_name">
											<x:out select="$xmlData/data/organization_persons/legal_title_name"/>
										</span>
										<span style="display:none" name="organization_persons/organization_person[1]/prof_title">
											<x:out select="$xmlData/data/organization_persons/legal_title"/>
										</span>
									</td>
									<td align="center">&nbsp;<span name="organization_persons/organization_person[1]/tel_work">
											<x:out select="$xmlData/data/organization_persons/legal_tel"/>
										</span>
									</td>
									<td align="center">&nbsp;<span name="organization_persons/organization_person[1]/mobile">
											<x:out select="$xmlData/data/organization_persons/legal_mobile"/>
										</span>
									</td>
									<td align="center" >&nbsp;<span name="organization_persons/organization_person[1]/email" > 
											<x:out select="$xmlData/data/organization_persons/legal_email"/>
										</span>
									</td>
							</tr>
							<tr>
									<td align="right" class="thclass">职工总数：</td>
									<td colspan="1" align="center" class="thclass">&nbsp;<span name="organizations/organization[0]/people_count_total">
											<x:out select="$xmlData/data/organization_persons/people_count_total"/>
										</span>人
									</td>
									<td colspan="5" class="thclass"></td>
							</tr>
							<tr>
									<td align="right">其中</td>
									<td align="center">技术人员数：</td>
									<td align="center">&nbsp;<span name="organizations/organization[0]/people_count_tech">
											<x:out select="$xmlData/data/organization_persons/people_count_tech"/>
										</span>人
									</td>	
							
									<td align="right">高级职称数：</td>
									<td align="center">&nbsp;<span name="organizations/organization[0]/people_count_high">
											<x:out select="$xmlData/data/organization_persons/senior"/>
										</span>人
									</td>
									<td align="right">中级职称数：</td>
									<td align="center">&nbsp;<span name="organizations/organization[0]/people_count_middle">
											<x:out select="$xmlData/data/organization_persons/intermediate"/>
										</span>人
									</td>	
							</tr>
							</tbody>
					</table>
					<br>
					<table  class="t_css" cellpadding="0" cellspacing="0" width="100%" align="center" id='orgInfo3'>
							<tr><td colspan="7" class="t_bar">&nbsp;单位经济效益</td></tr>
							<tr>
									<td width="100px" align="right">年产值：</td>
									<td >&nbsp;<span name="organizations/organization[0]/benifit_annual_total">
											<x:out select="$xmlData/data/organization_finances/benefit_annual_total"/>
										</span> 万元
									</td>
									<td width="100px" align="right">年销售额：</td>
									<td >&nbsp;<span name="organizations/organization[0]/benifit_annual_sale">
											<x:out select="$xmlData/data/organization_finances/benefit_annual_sale"/>
										</span>万元
									</td>	
							</tr>
							<tr>
									<td align="right">出口创汇：</td>
									<td colspan="3">&nbsp;<span name="organizations/organization[0]/benifit_annual_foreign">
											<x:out select="$xmlData/data/organization_finances/benefit_annual_foreign"/>
										</span>万美元
									</td>
							</tr>	
							<tr>
									<td align="right">年利税：</td>
									<td >&nbsp;<span name="organizations/organization[0]/benifit_annual_tax">
											<x:out select="$xmlData/data/organization_finances/benefit_annual_tax"/>
										</span>万元
									</td>
									<td align="right">年研究开发经费：</td>
									<td >&nbsp;<span name="organizations/organization[0]/benifit_annual_dev">
											<x:out select="$xmlData/data/organization_finances/enifit_annual_dev"/>
										</span>万元
									</td>	
							</tr>		
							
					</table>
<br/>						
<div class="t_bar">
	股东构成
</div>
<table class="t_css table01" width="100%" border="0" cellpadding="0"
	id="tblShareholders" cellspacing="1">
    <thead>
		<tr>
			<th class="TblHead" align="center" width="20px">选择</th>
			<th class="TblHead" align="center" width="20px">序号</th>
			<th class="TblHead" align="center" width="80px">股东名称 </th>
			<th class="TblHead" align="center" width="80px">投资者经济形态 </th>
			<th class="TblHead" align="center" width="80px">法人代码（或身份证号码） </th>
			<th class="TblHead" align="center" width="80px">是否上市公司</th>
			<th class="TblHead" align="center" width="80px">境外公司或外籍</th> 
			<th class="TblHead" align="center" width="80px">所占股份（%）</th>
			<th class="TblHead" align="center" width="80px">投资方式</th> 
		</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selMileStones" >
						</td>
						<td>&nbsp;
							<span name="shareholders|shareholder[0]@seq_no" >[index]</span> 
						</td>
						<td>&nbsp;
							<input type="text" size="15" name="shareholders|shareholder[0]|name" class="input_text required" maxlength=50 label="股东名称" value="" />
						</td>
						<td>&nbsp;
							<input type="text" size="15" name="shareholders|shareholder[0]|type" class="input_text required" maxlength=50 label="投资者经济形态" value="" />
						</td>
						<td>&nbsp;
							<input type="text" size="15" name="shareholders|shareholder[0]|code" class="input_text required" maxlength=50 label="法人代码（或身份证号码）" value="" />
						</td>
						<td>&nbsp;
							<input type="text" size="15" name="shareholders|shareholder[0]|shangshi" class="input_text required" maxlength=50 label="是否上市公司" value="" />
						</td>
						<td>&nbsp;
							<input type="text" size="15" name="shareholders|shareholder[0]|jwgs" class="input_text required" maxlength=50 label="境外公司或外籍" value="" />
						</td>
						<td nowrap>&nbsp;
						    <input type="text" size="15" style="text-align:right;" name="shareholders|shareholder[0]|invest_percent" class="input_text required" maxlength=50 label="所占股份" onfocus="InitInput.setNumber(this,2,2,2)" value="" />
						</td> 
						<td>&nbsp;
						    <input type="text" size="15" name="shareholders|shareholder[0]|invest_type" class="input_text required" maxlength=50 label="投资方式" value="" />
						</td> 
					</tr>
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/shareholders/shareholder" var="shareholder">
					<c:choose>
						<c:when test="${index<10}" >
						<c:set value="0" var="flag" scope="page"/>
						</c:when>
						<c:otherwise>
						<c:set value="" var="flag" scope="page"/>
						</c:otherwise>
					</c:choose>
					<tr>
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selShareholders" >
						</td>
						<td>
							<span name="shareholders/shareholder[${flag}${index}]@seq_no" >${index+1}</span> 
						</td>
						<td>&nbsp;
							<input type="text"  name="shareholders/shareholder[${flag}${index}]/name" 
							class="input_text required" maxlength=50 label="股东名称"  size="15"
							value="<x:out select="$shareholder/name" />" />
						</td>
						<td>&nbsp;
							<input type="text"  name="shareholders/shareholder[${flag}${index}]/type" 
							class="input_text required" maxlength=50 label="投资者经济形态"  size="15"
							value="<x:out select="$shareholder/type" />" />
						</td>
						<td>&nbsp;
							<input type="text" name="shareholders/shareholder[${flag}${index}]/code" 
							class="input_text required" maxlength=50 label="法人代码（或身份证号码）"  size="15"
							value="<x:out select="$shareholder/code" />" />
						</td>
						<td>&nbsp;
							<input type="text" name="shareholders/shareholder[${flag}${index}]/shangshi" 
							class="input_text required" maxlength=50 label="是否上市公司" size="15"
							value="<x:out select="$shareholder/shangshi" />" />
						</td>
						<td>&nbsp;
							<input type="text" name="shareholders/shareholder[${flag}${index}]/jwgs" 
							class="input_text required" maxlength=50 label="境外公司或外籍" size="15"
							value="<x:out select="$shareholder/jwgs" />" />
						</td>
						<td nowrap>&nbsp;
							<input type="text" style="text-align:right;" name="shareholders/shareholder[${flag}${index}]/invest_percent" size="15"
							class="input_text required" maxlength=50 label="所占股份" onfocus="InitInput.setNumber(this,7,4,2)"
							value="<x:out select="$shareholder/invest_percent" />" />
						</td> 
						<td>&nbsp;
							<input type="text" name="shareholders/shareholder[${flag}${index}]/invest_type"
							 class="input_text required" maxlength=50 label="出资形式" size="15"
							 value="<x:out select="$shareholder/invest_type" />" />
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblShareholders");
					</script>
				</tbody>
			</table>
			<br>
			<table width="98%" align="center">
				<tr>
					<td>
					
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('tblShareholders');showDateTag('tblShareholders');try{top.resizeFrame();}catch(e){};">
					
					<!-- 
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblShareholders',3,'只能填写3名主要股东')){addNewRow('tblShareholders');}showDateTag('tblShareholders');try{top.resizeFrame();}catch(e){};">
					 -->
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblShareholders','selShareholders')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblShareholders','selShareholders')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblShareholders','进度')">
					</td>
				</tr>
	        </table>
<script type="text/javascript">
$(function(){
	$("#orgInfo tr:even").addClass("li_1");
    $("#orgInfo tr:odd").addClass("li_2");
    $("#orgInfo2 tr:even").addClass("li_1");
    $("#orgInfo2 tr:odd").addClass("li_2");
    $("#orgInfo3 tr:even").addClass("li_1");
    $("#orgInfo3 tr:odd").addClass("li_2");
    $("#contactInfo tr:even").addClass("li_1");
    $("#contactInfo tr:odd").addClass("li_2");
    $("#rateInfo tr:even").addClass("li_1");
    $("#rateInfo tr:odd").addClass("li_2");
});
</script>
